package com.shuai.enums;

/**
 * 异常信息枚举类
 *
 * @author shuai
 * @since 2022
 */
public enum ErrorEnum {

    ERROR_LOGIN("400", "系统登录错误，请联系管理员"),
    ERROR_USER_NAME("400", "用户账号【%s】不存在,请重新输入" ),
    ERROR_USER_PASSWORD("400", "用户密码错误"),

    ERROR_TOKEN_NOT("400","TOKEN获取失败"),
    ERROR_TOKEN_INFO("400","TOKEN获取失败"),
    ERROR_TOKEN_GET("400","TOKEN解析失败"),
    ;

    private final String code;
    private final String msg;

    ErrorEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
